<!DOCTYPE html>
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="canonical" href="https://getbootstrap.com/docs/3.4/examples/dashboard/">

    <title> 进销存</title>

	 <link rel="stylesheet" href="static/css/bootstrap.min.css" >

    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <link href="static/css/ie10-viewport-bug-workaround.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="static/css/dashboard.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="static/js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>

    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">进销存</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">
            <li><a href="#">{{ current_user.name }} </a></li>
            <li><a href="/logout">退出</a></li>
          </ul>
        </div>
      </div>
    </nav>

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
            <!-- class="active" -->
            <li {% block dashboard %}{% endblock %}><a href="/main">概览<span class="sr-only">(current)</span></a></li>
            <li {% block purchase %}{% endblock %} ><a href="/purchase">采购</a></li>
            <li {% block sell %}{% endblock %} ><a href="/sell">销售</a></li>
            <li {% block stock %}{% endblock %} ><a href="/stock">库存</a></li>
          </ul>
            {% if current_user.role  == 1 %}
          <ul class="nav nav-sidebar">

            <li {% block user %}{% endblock %} ><a href="/user">用户管理</a></li>
            <li {% block customer %}{% endblock %} ><a href="/customer">客户管理</a></li>
            <li {% block goods %}{% endblock %} ><a href="/goods">商品管理</a></li>
            <li {% block supplier %}{% endblock %} ><a href="/supplier">供应商管理</a></li>
          </ul>
            {% endif %}
          
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
          {% block content %} {% endblock %}
        </div>
      </div>
    </div>

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <!--
    <script src="./base_files/jquery.min.js.下载" integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ" crossorigin="anonymous"></script>
    <script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
    <script src="./base_files/bootstrap.min.js.下载"></script>
    -->
    <!-- Just to make our placeholder images work. Don't actually copy the next line! -->
    <!--
    <script src="./base_files/holder.min.js.下载"></script>
    -->
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <!--
    <script src="./base_files/ie10-viewport-bug-workaround.js.下载"></script>
    -->


	
	
	
		<div id="omni-extension" class="omni-closing omni-extension">
			<div id="omni-wrap">
				<div id="omni">
					<div id="omni-search">
						<input placeholder="Type a command or search">
					</div>
					<div id="omni-list">
					</div>
					<div id="omni-footer">
						<div id="omni-results">153 results</div>
						<div id="omni-arrows">Use arrow keys <span class="omni-shortcut">↑</span><span class="omni-shortcut">↓</span> to navigate</div>
					</div>
				</div>
			</div>
			<div id="omni-overlay"></div>
		</div>
		<div id="omni-extension-toast"><img src="chrome-extension://mapjgeachilmcbbokkgcbgpbakaaeehi/assets/check.svg"><span>The action has been successful</span></div>
	
</body></html>
